package com.example.hospital.mapper;

import java.util.List;
import com.example.model.domain.entity.hospital.HospitalSet;
import com.example.model.vo.hospital.HospitalSetQueryVo;
import org.apache.ibatis.annotations.Param;

/**
 * 医院设置Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-08
 */
public interface HospitalSetMapper
{
    /**
     * 查询医院设置
     *
     * @param id 医院设置ID
     * @return 医院设置
     */
    public HospitalSet selectHospitalSetById(Long id);



    /**
     * 查询医院设置列表
     * @return
     */
    public List<HospitalSet> selectHospitalSetList();


    /**
     * 新增医院设置
     *
     * @param hospitalSet 医院设置
     * @return 结果
     */
    public int insertHospitalSet(HospitalSet hospitalSet);

    /**
     * 修改医院设置
     *
     * @param hospitalSet 医院设置
     * @return 结果
     */
    public int updateHospitalSet(HospitalSet hospitalSet);

    /**
     * 删除医院设置
     *
     * @param id 医院设置ID
     * @return 结果
     */
    public int deleteHospitalSetById(Long id);

    /**
     * 批量删除医院设置
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHospitalSetByIds(Long[] ids);


    /**
     * 查询医院设置分页
     * @param hospitalSetQueryVo
     * @return
     */
    public List<HospitalSet> selectHospitalSetPage(HospitalSetQueryVo hospitalSetQueryVo);

    /**
     * 锁定解锁医院设置
     * @param id
     * @param status
     * @return
     */
    public int hospitalSetLocked(@Param("id") Long id,@Param("status") Integer status);


    /**
     * 查询医院签名
     * @param hospitalSetCode
     * @return sign
     */
    public String selectSignByHospitalSetCode(String hospitalSetCode);

    /**
     * 根据hoscode查询HospitalSet
     * @param hoscode
     * @return
     */
    HospitalSet selectHospitalSetByHoscode(String hoscode);
}
